<?php

namespace app\push\controller;

use think\Controller;
use think\Db;

class Base extends Controller
{


    public function _initialize()
    {
        parent::_initialize();
        $this->__check_login();

    }

    /**
     * 检测是否登录
     */
    public function __check_login()
    {
        if (!session('userinfo.id') || !session("?userinfo")) {
            $this->redirect("login/login");
        }
    }
    
}
